package org.korifey.ffbdd.api.traverse;

import java.util.ArrayList;
import java.util.List;

import org.korifey.ffbdd.api.INode;
import org.korifey.ffbdd.api.ITraverseStrategy;

public class NodeAccStrategy implements ITraverseStrategy {
	
	List<INode> acc = new ArrayList<INode>();
	
	public List<INode> getAccumulated() {
		return acc;
	}
	
	@Override
	public void proccess(INode node) {
		acc.add(node);
	}

}
